import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { BrowserRouter, Route } from 'react-router-dom';
import logo from './logo.svg';
import './styles/App.css';
import configureStore from './store/configureStore'
import rootSaga from './sagas'
import Layout from './routes/Layout'

const store = configureStore()
store.runSaga(rootSaga)

class App extends Component {
  render() {
    return (
      <Provider store={store}>
        <BrowserRouter basename="/">
          <Route component={Layout} />
        </BrowserRouter>
      </Provider>
    );
  }
}

export default App;
